<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
	<head>
    <title>Step</title>
	</head>
	<body>
	    <hr>
		<h3>Step <s:property value="%{step}"/> </h3>	
		<s:form id="myform" namespace="step" action="step-2-reload" >
			<h4 >Pagamento</h4>
			<div>
				<s:select name="pratica.pagamento.tipo" list="listaTipoPagamento" listKey="chiave" listValue="valore" 
				headerKey="-1" headerValue="- Selezionare Tipo -" key="pratica.pagamento.tipo"
				onChange="document.forms['myform'].submit();"
				/>
				<s:textfield key="pratica.pagamento.descrizione" readonly="true"/>
				<s:textfield key="pratica.pagamento.dataPagamento"/>
				<s:textfield key="pratica.pagamento.daPagare" value="%{getText('{0,number,#,##0.00}',{pratica.pagamento.daPagare})}"/>
				<s:textfield key="pratica.pagamento.pagato" value="%{getText('{0,number,#,##0.00}',{pratica.pagamento.pagato})}" />
			</div>
			<s:submit value="Indietro"  action="step-%{step-1}"/>
    		<s:submit value="Avanti"  action="step-upload"/>
		</s:form>
	    <hr>	
	</body>
	
</html>